﻿@model IEnumerable<Domain.Region>

@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>
@using (Html.BeginForm("Index", "Region", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <input type="file"  accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.csv"  name="file" />
    <input type="submit" value="OK" />
}
@helper makeList(IEnumerable<Domain.Region> list) {
    <ul>
    @foreach (Domain.Region r in list)
    {
        <li>@r.Name @makeList(r.Children)</li>
    }
    </ul>
}
@makeList(Model)